<template>
  <div>
    <demo v-if="isShow"></demo>
    <button @click="isShow=!isShow">点我销毁</button>
  </div>
</template>

<script>
import demo from './components/demo.vue'
export default {
  components:{demo},
  data() {
    return {
      isShow:true
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>